package com.qys.livesMall.system.model.dto.sys;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * <p>
 * 首页轮播图
 * </p>
 *
 * @author dp
 * @since 2023-05-02
 */
@Data
public class H2AppHomeBannerDTO implements Serializable {

    private String id;

    @Schema(name = "banner类型")
    private Integer type;

    @Schema(name = "活动类型")
    private Integer activityType;

    @Schema(name = "关联活动Id/外链url")
    private String activityId;

/*    @Schema(name = "开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate startTime;

    @Schema(name = "结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate endTime;*/

    @Schema(name = "活动详情")
    @TableField("detail")
    private String detail;

    @Schema(name = "图片地址")
    @TableField("img")
    private String img;

    @Schema(name = "跳转链接")
    @TableField("url")
    private String url;
}
